<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>加盟商地图-书剑古茶,书剑普洱,云南普洱,书剑普洱江湖,书剑江湖,云南书剑茶叶有限公司，书剑普洱江湖官方网站-书剑古茶官方网站</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<meta name="keywords" content="书剑古茶,书剑普洱,云南普洱,书剑普洱江湖,书剑江湖,云南书剑茶叶有限公司，书剑普洱江湖官方网站-书剑古茶官方网站" />
	<meta name="description" content="书剑古茶,书剑普洱,云南普洱,书剑普洱江湖,书剑江湖,云南书剑茶叶有限公司，书剑普洱江湖官方网站-书剑古茶官方网站"/>
	<link rel="stylesheet" type="text/css" href="../css/index_1.css">
	<style type="text/css">
		body, html,#l-map {width: 100%;height: 100%;overflow: hidden;margin:0;}
		#baidumap{
			height: 100%;}
	</style>
	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/common.js"></script>

	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=P2FNtzxNufSlwBx3Gt3GYhxR"></script>
	<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
	<link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
</head>

<body id="home-640">

    <div  class="my_header" style="line-height: 40px;">
	        		<a href="javascript:history.go(-1)" class="header-back"><span style="padding-left: 20px;">返回</span></a>
		</div>
	<div id="baidumap"></div>


</body>
</html>
<script type="text/javascript">
	$(function(){
	var mapPoint= GetQueryString('mapPoint').split(',');
	var fname = decodeURI(GetQueryString('fname'));
	var faddress = decodeURI(GetQueryString('fadd'));
	var linkman = decodeURI(GetQueryString('linkman'));
	var mobile = decodeURI(GetQueryString('mobile'));
	var map = new BMap.Map("baidumap");
	var point = new BMap.Point(mapPoint[0],mapPoint[1]);
	map.centerAndZoom(point, 18);
	var marker = new BMap.Marker(point);
	marker.addEventListener("click",function(){
		//点击坐标点后缩放至最大级别并将该点设为中心点
		map.setZoom(17);
		map.setCenter(point);
	});
	map.addControl(new BMap.NavigationControl({offset:new BMap.Size(10,50)}));

	map.addControl(new BMap.GeolocationControl({offset:new BMap.Size(10,50)}));
	var content = '<div style="margin:0;line-height:20px;padding:2px;">地址：' +
			faddress+'<br/>联系人：'+linkman+'<br/>电话：' +mobile+'</div>';

	//创建检索信息窗口对象
	var searchInfoWindow = null;
	searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {
		title  : fname,      //标题
		width  : 200,             //宽度
		height : 80,              //高度
		panel  : "panel",         //检索结果面板
		enableAutoPan : true,     //自动平移
		searchTypes   :[
			BMAPLIB_TAB_TO_HERE,  //到这里去
			BMAPLIB_TAB_FROM_HERE //从这里出发
		],
		enableSendToPhone:false
	});
	map.addOverlay(marker);
//	marker.addEventListener("click",function(e){
//		searchInfoWindow.open(marker);
//	});
	searchInfoWindow.open(marker);

	});
</script>